package com.forezp.config;

import com.forezp.rule.WeightedRule;
import com.netflix.loadbalancer.IRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ServiceRibbonConfig {

    // @Bean
    // public IRule randomRule() {
    //     return new RandomRule();
    // }

    @Bean
    public IRule randomRule() {
        return new WeightedRule();
    }
}